package com.phenix.annotation.apt;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 实例化注解,会被主动添加到实例化工厂,自动生成new来替换掉反射的newInstance代码
 */
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface Instance {
    /**普通类型*/
    int NORMAL = 0;
    /**ViewHolder*/
    int VIEW_HOLDER = 1;

    int type() default NORMAL;
}
